package com.mooco.dongba.sys.dao;

import com.mooco.dongba.common.pojo.Node;
import com.mooco.dongba.sys.pojo.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysDeptDao {
    List<SysDept> findObjects();

    List<Node> findZTreeNodes();

    @Select("select * from sys_depts where id=#{id}")
    SysDept findById(Integer id);
}
